<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ShopNC后台管理系统</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<smart>include file ='sys_head_config.html'</smart>
<script language="javascript" type="text/javascript" src="../js/select_area_zh-cn.js"></script>
<script language="javascript" type="text/javascript" src="../classes/resource/FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
$(function(){
	//alert();
	//省市js
	<smart> if $product_array.p_id !="" </smart>
	selectprovince = "<smart> $product_array.p_province </smart>";
	selectcity = "<smart> $product_array.p_city </smart>";
	<smart> /if </smart>
	iniProvince(document.getElementById('slProvince'));
	iniCity(document.getElementById('slProvince'),document.getElementById('slCity'));

})
//切换团购时设计的
var bgimage='posttype2.gif';
function BuyingInGroup() {
	changeBuying('posttype6.gif');
}
function BuyingInFixed() {
	changeBuying('posttype2.gif');
}
function BuyingInAuction() {
	changeBuying('posttype1.gif');
}
function changeBuying(bgimage){
	var bgurl='<smart> $template_dir </smart>/member/images/';
	$('#product_nav span').css('background','url('+bgurl+bgimage+')');
}


//当前是一口价商品
var currentIsFixPrice = false;

</script>
</head>
<body>
<div id="ceng"> <smart>include file ='sys_header.html'</smart>
  <div id="main" style="height:auto">
    <div id="welcome">
      <p>欢迎您进入ShopNC后台管理系统！</p>
　　　　
通过后台管理系统，您可以轻松管理商铺相关、查询信息,ShopNC为您打造方便、快捷的后台管理系统！       </div>
    <em>后台管理系统</em>
    <div id="main-left">
      <div id="product-help" style="background-image:none; height:auto; margin-top:0px;padding-top:20px; padding-bottom:20px">
      <smart> if $product_array.p_id != "" </smart> <smart> assign var='action' value='update' </smart> <smart> else </smart> <smart> assign var='action' value='save' </smart> <smart> /if </smart>
  <form action="product.manage.php?action=<smart> $action </smart>" method="post" enctype="multipart/form-data" id="ownaddproduct" name="ownaddproduct">
    <input type="hidden" name="slPCId" id="slPCId" value="<smart> $slPCId </smart>" />
    <input type="hidden" name="txtPid" id="txtPid" value="<smart> $product_array.p_code </smart>"/>
    <input type="hidden" name="txtPcode" id="txtPcode" value="<smart> $product_array.p_code </smart>"/>
    <input type="hidden" name="txtPstarttime" id="txtPstarttime" value="<smart> $product_array.p_start_time </smart>"/>
    <input type="hidden" name="txtPendtime" id="txtPendtime" value="<smart> $product_array.p_end_time </smart>"/>
    <input type="hidden" name="txtPstate" id="txtPstate" value="<smart> $product_array.p_state </smart>"/>
    <input type="hidden" name="txtViewnum" id="txtViewnum" value="<smart> $product_array.p_view_num </smart>"/>

    <div id="product_nav"><span></span></div>
    <div id="ProductInfo_tidy" class="product_tidy" style="padding:10px"><span>01
      <smart> $langProductInfo </smart>
      </span> </div>
    <table width="650" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" class="table_product" id="ProductInfo">
      <tr>
        <th width="20%" height="30" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langSelltype </smart>：</th>
        <td width="80%" height="30" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px; line-height:20px"><input type="radio"  id="radioSelltype0"  name="radioSelltype" value="0"  onclick="BuyingInAuction();changeAuctionType('0');" <smart> if $selltype==0 </smart> checked="checked" <smart> /if </smart> />
          拍卖 
        <input type="radio" id="radioSelltype1"  name="radioSelltype" value="1"  onclick="BuyingInFixed();changeAuctionType('1');"  <smart> if $selltype==1 </smart> checked="checked" <smart> /if </smart> />
          一口价 <input type="radio" id="radioSelltype2"  name="radioSelltype" value="2" onclick="BuyingInGroup();changeAuctionType('2');"  <smart> if $selltype==2 </smart> checked="checked" <smart> /if </smart> />
          团购 </td>
      </tr>
      <tr>
        <th width="20%" height="30" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langProductCate </smart>：</th>
        <td width="80%" height="30" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px; line-height:20px"><label><smart> $cate_name </smart></label>
		<input type="button"  name="event_submit_do_re_select_category" value="<smart> $langbtnCateEdit </smart>" onclick="location.href='product.manage.php?action=sell&pid=<smart> $product_array.p_code </smart>'" />
		</td>
      </tr>
      <tr id="old_new" >
        <th width="20%" height="30" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langProductType </smart>：</th>
        <td width="80%" height="30" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px; line-height:20px"><input type="radio" value="0" id="radioType1" name="radioType"<smart> if $product_array.p_type == 0 </smart> checked="checked"<smart> /if </smart> />
              <label for="on1"><smart> $langProductTypeNew </smart></label>
           
          　    <input type="radio" value="1" name="radioType" id="radioType2" <smart> if $product_array.p_type == 1 </smart> checked="checked"<smart> /if </smart> />
          　    <label for="on6"><smart> $langProductTypeSec </smart></label>
            
              <span id="restOn8">
              <input type="radio" value="2" name="radioType" id="radioType3" <smart> if $product_array.p_type == 2 </smart> checked="checked"<smart> /if </smart> />
              <label for="on8"><smart> $langProductTypePlace </smart></label>
              </span>
            </td>
      </tr>
      <smart> if $have_attribute == 1 </smart>
      <tr id="baby">
        <th width="20%" height="98" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langProductAttribute </smart>：</th>
        <td width="80%" height="98" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px; line-height:20px"><smart> section name=j loop=$product_attribute </smart> <smart> $product_attribute[j].a_name </smart>：<smart> if $product_attribute[j].a_type == 0 </smart>
          <select name="attribute_content[]">
            <option value=""></option>
            <smart> section name=k loop=$product_attribute_content[j] </smart> <option value="<smart> $product_attribute_content[j][k].ac_id </smart>|<smart> $product_attribute[j].a_id </smart>"<smart> if $product_attribute_content[j][k].ischecked == 1 </smart> selected<smart> /if </smart> ><smart> $product_attribute_content[j][k].ac_content </smart>
            </option>
            <smart> /section </smart>
          </select>
        　  <smart> /if </smart> <smart> if $product_attribute[j].a_type == 1 </smart> <smart> section name=k loop=$product_attribute_content[j] </smart> <input name="attribute_content[]" type="checkbox" value="<smart> $product_attribute_content[j][k].ac_id </smart>|<smart> $product_attribute[j].a_id </smart>"<smart> if $product_attribute_content[j][k].ischecked == 1 </smart> checked="checked"<smart> /if </smart> ><smart> $product_attribute_content[j][k].ac_content </smart> <smart> /section </smart> 
          <smart> /if </smart> 
          <br />
          <smart> /section </smart> </td>
      </tr>
      <smart> /if </smart>
      <tr>
        <th width="20%" height="63" align="center" valign="middle" bgcolor="#DBE6DE"><label for='txtPname'><smart> $langProductName </smart>：</label></th>
        <td width="80%" height="63" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px; line-height:20px"><input id="txtPname" name="txtPname" maxLength=60 size=40 value="<smart> $product_array.p_name </smart>" />
        　  <label style="display:block; margin:10px 0 0" for='txtPname'><smart> $alertPname </smart> </label>
        </td>
      </tr>
      <tr>
        <th width="20%" height="118" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langUploadPic </smart>：</th>
        <td width="80%" height="118" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px; line-height:20px"><div style="float:left; width:400px"><input name="txtPpic" type="file" id="txtPpic" onchange="$('#previewImage').html('<img src=\''+this.value+'\' width=100 height=100 />')"  size="40" />
           　 <input type="hidden" name="p_pic" id="p_pic"  value="<smart> $product_array.p_pic </smart>" />
            <span class="posttip" style="display:block; margin:10px 0 0"><smart> $alertPostpic </smart></span> </div>
          <div id="previewImage"><smart> if $product_array.p_pic != "" </smart><img src='../<smart>$product_array.p_pic</smart>' width='100'><smart> /if </smart><smart> if $product_array.p_pic == "" </smart>没有图片<smart> /if </smart></div></td>
      </tr>
      <tr>
        <th width="20%" height="49" align="center" valign="middle" bgcolor="#DBE6DE"><label for='txtPintro'><smart> $langProductInfo </smart>：</label></th>
        <td width="80%" height="49" bgcolor="#F7FFF7"><script type="text/javascript">
        var oFCKeditor = new FCKeditor('txtPinfo');
        oFCKeditor.BasePath = "../classes/resource/FCKeditor/";
        oFCKeditor.Value = '<smart> $product_array.p_intro </smart>';
        oFCKeditor.Height = 350;
        oFCKeditor.Width = 535;
        oFCKeditor.ToolbarSet = 'Product';
        oFCKeditor.Config['ImageUpload'] = 'false';
        oFCKeditor.Config['ImageBrowser'] = 'false';
        oFCKeditor.Config['LinkBrowser'] = 'false';
        oFCKeditor.Config['LinkUpload'] = 'false';
        oFCKeditor.Create();
		  </script>
          <label for='txtPinfo' style=" padding-left:10px; padding-right:10px; line-height:20px"><smart> $alertProductInfo </smart> </label>
        </td>
      </tr>
      <tr >
        <th width="20%" height="30" align="center" valign="middle" bgcolor="#DBE6DE"><label for='txtPstorage'><smart> $langProductStorage </smart>：</label></th>
        <td width="80%" height="30" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px; line-height:20px"><input maxLength="6" size="5" name="txtPstorage" id="txtPstorage" value="<smart> $product_array.p_storage|default:1 </smart>" />
          件</td>
      </tr>
    </table>
    <div class="product_tidy" id="TradeCondition_tidy"  style="padding:10px"> <span>02
      <smart> $langTradeCondition </smart>
      </span> </div>
    <table width="650" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" class="table_product" id="TradeCondition">
    <tr id="auctionOption1">
        <th></th>
        <td></td>
      </tr>
      <tr id="auctionOption2">
        <th width="20%" height="51" align="center" valign="middle" bgcolor="#DBE6DE" class="fontSize14">起 拍 价：</th>
        <td width="80%" height="51" bgcolor="#F7FFF7" class="fontSize14" style=" padding-left:10px; padding-right:10px; line-height:20px"><input maxLength="12" size="12" id="minimumBid" name="t" value="0.0" >
          元 <br />
          <span class="posttip" style="font-size:12px">起拍价就是您可以接受的最低价格，请谨慎设置;
          <div id="catePriceLimita"></div>
          </span> </td>
      </tr>
      <tr id="auctionOption4">
        <th width="20%" height="83" align="center" valign="middle" bgcolor="#DBE6DE" class="fontSize14">加价幅度：</th>
        <td width="80%" height="83" bgcolor="#F7FFF7" class="fontSize14" style=" padding-left:10px; padding-right:10px; line-height:20px"><input type="radio" checked="checked" name="system_step" value="1" id="inc1" onclick="document.getElementById('incrNum').readOnly=true;document.getElementById('incrNum').className='disabled';document.getElementById('incrNum').value=0;" />
          <label for="inc1">系统自动代理加价（淘宝推荐）</label>
          <br /><input type="radio"  name="system_step" value="0" id="inc2" onclick="document.getElementById('incrNum').readOnly=false;document.getElementById('incrNum').className=''" />
          <label for="inc2">自定义</label>
          <input maxLength=15 size=10 name="price_step" value="0.0" id="incrNum">
          元 <br />
          <span class="posttip">加价幅度就是竞拍者为了超越前一个人的出价在现有价格上加的金额。推荐您选择<a href="#" target=_blank>系统自动代理加价。</a> </span>
          <script type="text/javascript">
          if (document.getElementById('inc1').checked) {
          	document.getElementById('incrNum').readOnley=true;
          	document.getElementById('incrNum').className='disabled';
          	document.getElementById('incrNum').value = 0;
          }
</script></td>
      </tr>
      <tr id="fixpriceOption2">
        <th width="20%" height="42" align="center" valign="middle" bgcolor="#DBE6DE"> <label for='txtPprice'><smart> $langProductPrice </smart>：</label>        </th>
        <td width="80%" height="42" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px; line-height:20px"><input type="text" id="txtPprice" maxLength="12" size="12" name="txtPprice" value="<smart> $product_array.p_price </smart>"  />
          元
          <label class="fontsize12" for='txtPprice' style="display:block">定一个固定的价格，买家没有讨价还价的余地。选择"一口价"，省时省心。</label>
          <div id="catePriceLimit1"></div></td>
      </tr>
        <tr id="camelOption2">
          <th width="20%" height="30" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langGroupPrice </smart>：</th>
          <td width="80%" height="30" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px"><input type="text" id="txtGroupprice" maxLength="12" size="12" name="txtGroupprice" value="<smart> $product_array.p_group_price </smart>" />
            元 <span style="font-size:12px">购买数量超过团购最小数量时，所有买家按此价格成交。 </span>
            <div id="catePriceLimit2"></div></td>
        </tr>
        <tr id="camelOption5">
          <th width="20%" height="30" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langOldPrice </smart>：</th>
          <td width="80%" height="30" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px"><input type="text" id="txtPoldprice" maxLength="12" size="12" name="txtPoldprice" value="<smart> $product_array.p_price </smart>" />
            元 <span style="font-size:12px">原价应大于或等于团购价。</span> </td>
        </tr>
        <tr id="camelOption4">
          <th width="20%" height="42" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langGroupMinCount </smart>：</th>
          <td width="80%" height="42" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px; line-height:20px"><input type="text" id="txtGroupmincount" maxLength="12" size="12" name="txtGroupmincount" value="<smart> $product_array.p_group_mincount|default:5 </smart>" />
            件 <span>（5-100件，并且不大于宝贝总数）</span> <span style="font-size:12px">购买数量超过或等于团购最小数量，交易达成；购买数量低于团购最小数量，交易未达成。</span></td>
        </tr>
      <tr>
        <th width="20%" height="30" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langProductArea </smart>：</th>
        <td width="80%" height="30" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px"><select name="slProvince" id="slProvince" onchange="javascript:iniCity(document.getElementById('slProvince'),document.getElementById('slCity'));">
          </select>
          <span class="fontsize12">城市:</span>
          <select name="slCity" id="slCity">
          </select>        </td>
      </tr>
      <tr>
        <th width="20%" height="109" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langTranFee </smart>：</th>
        <td width="80%" height="109" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px"><ul style="list-style:none">
            <li><input name="radioTransfee" type="radio" id="whopsSeller" onclick="$('#ApplyPostage').css('display','none')" value="0" checked="checked"  />
              <label for="whopsSeller">卖家承担运费</label>
            </li>
            <li><input name="radioTransfee" type="radio" id="whopsBuyer" onclick="$('#ApplyPostage').css('display','block')"  value="1"  />
              <label for="whop</ul>sBuyer">买家承担运费</label>
            </li>
            <ul>
              <li id="ApplyPostage" style="display:none">
                <label for="isApplyPostage_false">平邮：</label>
                <input maxLength="12" size="8" id="pyTF" name="pyTF" value="<smart> $product_array.p_tf_py|default:0.0 </smart>" />
                元 快递：
                <input maxLength="12" size="8" id="kdTF" name="kdTF" value="<smart> $product_array.p_tf_kd|default:0.0 </smart>" />
                元 EMS：
                <input maxLength="12" size="8" id="emsTF" name="emsTF" value="<smart> $product_array.p_tf_ems|default:0.0 </smart>" />
                元 </li>
            </ul>
          </ul>
          <div id="whenNotAuction"> 请制定合理的运费，让交易更顺利，EMS为0时不显示。 </div>
          <div id="whenAuction" style="display:none;"> <span class="posttip">拍卖包邮：拍卖的宝贝，只能以卖家承担运费的方式进行发布。</span></div></td>
      </tr>
      <tr id="inv">
        <th width="20%" height="30" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langInvoices </smart>：</th>
        <td width="80%" height="30" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px"><input type=radio  value="0" name="radioInvoices" id="radioInvoices" <smart> if $product_array.p_have_invoices eq 0 </smart>checked<smart> /if </smart> />
          <label for="invoiceN">无</label>
          <input type=radio  value="1" name="radioInvoices" id="radioInvoices2" <smart> if $product_array.p_have_invoices eq 1 </smart>checked<smart> /if </smart> />
          <label for="invoiceY">有</label>        </td>
      </tr>
      <tr id="wy">
        <th width="20%" height="30" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langWarranty </smart>：</th>
        <td width="80%" height="30" bgcolor="#F7FFF7" style=" padding-left:10px; padding-right:10px"><input type="radio" value="0" name="radioWarranty" <smart> if $product_array.p_have_warranty eq 0 </smart>checked<smart> /if </smart> />
          <label for="warrantyN">无</label>
          <input type="radio"  value="1" name="radioWarranty" <smart> if $product_array.p_have_warranty eq 1 </smart>checked<smart> /if </smart> />
          <label for="warrantyY">有</label>        </td>
      </tr>
    </table>
    <div class="product_tidy" id="OtherInfo_tidy" style="padding:10px"><span>03
      <smart> $langOtherInfo </smart>
      </span> </div>
    <table width="650" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" class="table_product" id="OtherInfo">
      <tr>
        <th width="119" height="30" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langValidDays </smart>：</th>
        <td width="612" bgcolor="#F7FFF7">　
          <select name="slValiddays" id="slValiddays" >
            <option value="7" <smart> if $product_array.p_valid_days == "7" </smart>selected<smart> /if </smart> >7
           </option>
            <option value="14" <smart> if $product_array.p_valid_days == "14" </smart>selected<smart> /if </smart> >14
            </option>
          </select>
          天 <span class="posttip" id="durainfo">宝贝信息在网上发布的时间，可以选择7天或者14天。 </span> </td>
      </tr>
      <tr>
        <th height="30" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langStartTime </smart>：</th>
        <td bgcolor="#F7FFF7"><!--          <input type="hidden" name="txtPstarttime" value="" />
-->
         　 
           <input type="radio" name="_now" value="0" id="_now0"  onclick="setTimeEnableAndInStock(false, false)" />
          <label for="_now0">立刻</label>
          <br/>
         　 <input type="radio" name="_now" value="1" id="_now1"  onclick="setTimeEnableAndInStock(true, false)" />
          <label for="now1">设定</label>
          <select name="_date" onchange="changeDate()">
          </select>
          <select name="_hour" onchange="changeHour()">
          </select>
          时
          <select name="_minute" onchange="setMinute()">
          </select>
          分 <span class="posttip">您可以设定宝贝的正式开始销售时间</span> <br/>
          <input type="hidden" name="_fma.publi._0.ap" value="0"/><!--放入仓库为-2，其他为0-->
         　 <input type="radio" name="_now" value="2" id="inStock"  onclick="setTimeEnableAndInStock(false, true)" />
          <label for="inStock">放入仓库</label>
        </td>
      </tr>
      <tr id="republish">
        <th height="30" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langAutoPublish </smart>：</th>
        <td bgcolor="#F7FFF7">　<input type="checkbox" value="1" name="chxAutopublish" id="chxAutopublish" <smart> if $product_array.p_auto_publish == "1" </smart>checked<smart> /if </smart><smart> if $product_array.p_auto_publish == "" </smart>checked<smart> /if </smart> />
          <label for="autoReport">是</label>
          <span class="posttip">系统会帮您自动重发一次，到期未卖出的宝贝，您可以在仓库里找到并重新发布</span> </td>
      </tr>
      <tr >
        <th height="30" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langRecommended </smart>：</th>
        <td bgcolor="#F7FFF7">　<input type="checkbox" value="1" name="chxRecommended" id="chxRecommended" <smart> if $product_array.p_recommended == "1" </smart>checked<smart> /if </smart> />
          <label for="promoted">是</label></td>
      </tr>
      <tr >
        <th height="97" align="center" valign="middle" bgcolor="#DBE6DE"><smart> $langRemark </smart>：</th>
        <td bgcolor="#F7FFF7"><span class="fontSize14">
          　
              <textarea style="height:70px" id="txtRemark" name="txtRemark" rows="10" cols="38"><smart> $product_array.remark </smart></textarea>
          </span> </td>
      </tr>
    </table>
    <div style="text-align:center; margin:20px">
     <!-- <input type="button" name="event_submit_do_preview" onclick="this.form.target='_blank';" value="  <smart> $langbtnProductPreview </smart>  " />-->
      <input type="submit" name="submit" id="submit" value="  <smart> $langbtnProductSubmit </smart>  " />
    </div>
  </form>
      </div>
    </div>
    	<smart>include file ='sys_right_help.html'</smart>
    <div style="clear:both"></div>
  </div>
<smart>include file ='sys_footer.html'</smart> <smart>include file ='../javascript/changedate.html'</smart>
</div>
<input id="aaa" type="hidden" name="_fma.publi._0.s" value="1" />
</body>
</html>
<script language="javascript">
function changeAuctionType(type){

	var ele = document.ownaddproduct.elements["radioType"];
	//chgType(type);

	var newRestSpan = document.getElementById('restOn8');
	if(newRestSpan){
		if(type == '2'){
			newRestSpan.style.display = 'none';  //不显示闲置属性
			removeRestTitle(mytitle);
		}else{
			newRestSpan.style.display = '';   //显示闲置属性
			if(radOn8 && radOn8.checked){ //选择了闲置 标题加入" 个人闲置"
				addRestTitle(mytitle);
			}
		}
	}

	if(type == '0') {
		document.getElementById('whopsSeller').checked = 'checked';
		document.getElementById('whopsBuyer').disabled = true;
		$('#ApplyPostage').css('display','none');
		document.getElementById('whenAuction').style.display = '';
		document.getElementById('whenNotAuction').style.display = 'none';
		auction();
	}else{
		if (type == '1'){
			fixprice();
		}else{
			camel();
		}


		document.getElementById('whopsBuyer').disabled = false;
		document.getElementById('whenAuction').style.display = 'none';
		document.getElementById('whenNotAuction').style.display = '';

	}
}

//判断是否是选择了团购
var myAuctionType = document.getElementById('radioSelltype2');
var newRestSpan = document.getElementById('restOn8');

var mytitle = document.getElementById('txtPname');

var radOn1 = document.getElementById('on1');
var radOn6 = document.getElementById('on6');
var radOn8 = document.getElementById('on8');

function removeRestTitle(title){
	if(title){
		var titleValue = title.value;

		if(titleValue.indexOf(" 个人闲置") != -1){
			titleValue = titleValue.replace(" 个人闲置","");
		}
		title.value = titleValue;
	}
}

function addRestTitle(title){
	if(title){
		var titleValue = title.value;

		if(titleValue.indexOf(" 个人闲置")==-1){
			titleValue = titleValue +" 个人闲置";
		}
		title.value = titleValue;
	}
}

if(newRestSpan){
	if(myAuctionType && myAuctionType.checked){
		newRestSpan.style.display = 'none';  //不显示闲置属性

		if(radOn8 && radOn8.checked){
			radOn8.checked = false;
		}
	}else{
		newRestSpan.style.display = '';   //显示闲置属性
	}
}

function fixprice() {

	var isSeniorShop = "true";
	document.getElementById('auctionOption1').style.display = 'none';
	document.getElementById('auctionOption2').style.display = 'none';
	document.getElementById('auctionOption3').style.display = 'none';
	document.getElementById('auctionOption4').style.display = 'none';

	document.getElementById('camelOption1').style.display = 'none';
	document.getElementById('camelOption2').style.display = 'none';
	document.getElementById('camelOption3').style.display = 'none';
	document.getElementById('camelOption4').style.display = 'none';
	document.getElementById('camelOption5').style.display = 'none';

	document.getElementById('fixpriceOption1').style.display = '';
	document.getElementById('fixpriceOption2').style.display = '';

	document.getElementById('txtPprice').name = 'txtPprice';
	document.getElementById('minimumBid').name = 't';
	document.getElementById('txtGroupprice').name = 't';
	document.getElementById('txtPoldprice').value = document.getElementById('txtPprice').value;

	//重发
	document.getElementById('republish').style.display = '';

	currentIsFixPrice = true;
}

function auction() {

	var isSeniorShop = "true";
	document.getElementById('auctionOption1').style.display = '';
	document.getElementById('auctionOption2').style.display = '';
	document.getElementById('auctionOption3').style.display = '';
	document.getElementById('auctionOption4').style.display = '';

	document.getElementById('camelOption1').style.display = 'none';
	document.getElementById('camelOption2').style.display = 'none';
	document.getElementById('camelOption3').style.display = 'none';
	document.getElementById('camelOption4').style.display = 'none';
	document.getElementById('camelOption5').style.display = 'none';

	document.getElementById('fixpriceOption1').style.display = 'none';
	document.getElementById('fixpriceOption2').style.display = 'none';


	document.getElementById('minimumBid').name = 'txtPprice';
	document.getElementById('txtGroupprice').name = 't';
	document.getElementById('txtPprice').name = 't';
	document.getElementById('txtPoldprice').value = document.getElementById('txtPprice').value;

	//重发
	document.getElementById('republish').style.display = '';

	currentIsFixPrice = false;

}

function camel() {
	var isSeniorShop = "true";
	document.getElementById('auctionOption1').style.display = 'none';
	document.getElementById('auctionOption2').style.display = 'none';
	document.getElementById('auctionOption3').style.display = 'none';
	document.getElementById('auctionOption4').style.display = 'none';

	document.getElementById('fixpriceOption1').style.display = 'none';
	document.getElementById('fixpriceOption2').style.display = 'none';

	document.getElementById('camelOption1').style.display = '';
	document.getElementById('camelOption2').style.display = '';
	document.getElementById('camelOption3').style.display = '';
	document.getElementById('camelOption4').style.display = '';
	document.getElementById('camelOption5').style.display = '';

	document.getElementById('txtGroupprice').name = 'txtGroupprice';
	document.getElementById('minimumBid').name = 't';
	document.getElementById('txtPprice').name = 'txtPprice';

	//重发
	document.getElementById('republish').style.display = 'none';

	currentIsFixPrice = false;

}

fixprice();
</script>
